from django.urls import path
from . import views

urlpatterns = [
    path('login/', views.user_login, name='user_login'),
    path('iflogin/', views.if_login, name='protected_view'),
    path('logout/', views.user_logout, name='user_logout'),
    path('getproductdata/', views.get_product_data, name='get_product_data'),
    path('getproductdetail/', views.get_product_detail, name='get_product_detail'),
    path('addproduct/', views.add_product, name='add_product'),
    path('update/<int:product_id>/', views.update_product, name='update_product'),
    path('delete/<int:product_id>/', views.delete_product, name='delete_product'),
    path('getcoachdata/', views.coach_list, name='get_coach_list'),
    path('getcoachdetail/<int:coach_id>/', views.coach_detail, name='coach_detail'),
    path('addcoach/', views.add_coach, name='add_coach'),
    path('getcoachphotos/<int:coach_id>/', views.get_coach_photos, name='get_coach_photos'),
    path('addcoachphotos/<int:coach_id>/',views.add_coach_photos, name='add_coach_photos'),
    path('deletecoach/<int:coach_id>/', views.delete_coach, name='delete-coach'),
    path('upload_coach_image/', views.upload_coach_image, name='upload_coach_image'),
    path('set_coach_cover/', views.set_coach_cover, name='set_coach_cover'),
    path('delete_coach_image/', views.delete_coach_image, name='delete_coach_image'),
    path('updatecoach/<int:coach_id>/', views.update_coach,name='update_coach')
    # path('/coaches/<int:coach_id>/', views.add_coach, name='')
]
